package school;

public class TeacherTest {

	public TeacherTest() {
		// TODO 自动生成的构造函数存根
	}

	public static void main(String[] args) {
		JavaTeacher jt = new JavaTeacher("老刘", "合肥科海中心");
		jt.selfIntro();
		jt.giveLession();
		System.out.println("#####################################");
		DocNetTeacher jt2 = new DocNetTeacher("老崔", "合肥科海中心");
		jt2.selfIntro();
		jt2.giveLession();
		jt2.workOnWindowsServer();
		System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");

		Teacher jt3 = new DocNetTeacher("小郭", "合肥科海中心");
		jt3.selfIntro();
		jt3.giveLession();// !!!!!!!!jt3按照DocNetTeacher的方式来上课
		// jt3.workOnWindowsServer();不可以
		System.out.println("jt3:" + jt3);
		System.out.println(jt3.hashCode());
	}

}
